home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / COMAL / A-COMAL Series / (k)aac.d64 / defkey.proc < prev    next >
Text File  |  2007-02-28  |  220b  |  12 lines

  1. 9000 //
  2. 9010 PROC DEFKEY(NO,X$) CLOSED
  3. 9020 ADDR:=KEYADDRESS(NO)
  4. 9030 FOR T:=1 TO 10 DO
  5. 9040 IF T<=LEN(X$) THEN
  6. 9050 POKE ADDR-1+T,ORD(X$(T))
  7. 9060 ELSE 
  8. 9070 POKE ADDR-1+T,0
  9. 9080 ENDIF 
  10. 9090 ENDFOR T
  11. 9100 ENDPROC DEFKEY
  12.